package com.grace.cms.forum.web.service.impl;

import org.springframework.stereotype.Service;

import com.grace.cms.general.service.CommonInterface;
import com.grace.system.utils.SecurityUtils;

@Service
public class  ForumCommonImpl  implements CommonInterface {

    @Override
    public String getUserName(boolean allowGuest) {
        return allowGuest?SecurityUtils.getUsernameNull():SecurityUtils.getUsername();
    }
    
}
